﻿
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;

using Game.Objects;
using Game.Toolkit;
using Game.Types;

namespace GameEditor2.Toolbox
{
    public partial class InfrastructureControl : UserControl
    {
        public InfrastructureControl()
        {
            InitializeComponent();
            Init();
        }
        
        void Init()
        {
            Collection<ObjectType> col = StandardInfrastructure.Railroad;
            foreach (ObjectType v in col) 
            {
                InfrastructureItemControl control = 
                    new InfrastructureItemControl();
                control.ObjectType = v;
                control.Width = 50;
                control.Height = 50;
                this.wrapPanel1.Children.Add(control);
            }
        }
        
    }
}